<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>Richzoo 众筹</title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width"/>
    <link rel="stylesheet" href="/style/home/bootstrap.css"/>
    <link rel="stylesheet" href="/style/home/common.css"/>
    <link rel="stylesheet" href="/style/home/jquery.validator.css"/>
    <link rel="stylesheet" href="/javascript/home/webuploader/webuploader.css"/>
    <script type="text/javascript" src="/javascript/home/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/javascript/home/bootstrap.min.js"></script>
    <script type="text/javascript" src="/javascript/home/jquery.validator.js"></script>
    <script type="text/javascript" src="/javascript/home/zh_CN.js"></script>
    <script type="text/javascript" src="/javascript/home/webuploader/webuploader.min.js"></script>
    <script type="text/javascript" src="/javascript/home/esl.js"></script>
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="/style/home/bootstrap-ie6.css">
    <![endif]-->
    <!--[if lte IE 7]>
    <link rel="stylesheet" href="/style/home/ie.css">
    <![endif]-->
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="/javascript/home/html5.js"></script>
    <script src="/javascript/home/respond.min.js"></script>
    <![endif]-->
    <link rel="shortcut icon" href="/images/home/favicon.ico"/>
    <link rel="apple-touch-icon" href="/images/home/touchicon.png"/>
</head>
<body>
<!--header-->
<div class="top-header">
    <div class="clearfix container">
        <!-- >768 nav-->
        <div class="row hidden-xs">
            <div class="logo col-xs-3">
                <a href="/">
                    <img src="<?php echo ($config["SITE_LOGO"]); ?>" class="col-xs-12"/>
                </a>
            </div>
            <div class="wrap-nav col-xs-6">
                <ul class="clearfix" id="nav-list">
                    <li>
                        <a href="/">首页</a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目浏览<i class="icon-chevron-down">向下</i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <?php if(is_array($deal_cate_list)): foreach($deal_cate_list as $key=>$vo): ?><li><a href="/list/?id=<?php echo ($vo["id"]); ?>" title="<?php echo ($vo["name"]); ?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="/user.html" class="dropdown-toggle" data-toggle="dropdown">我的众筹<i class="icon-chevron-down">向下</i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="/user.html">我的众筹</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="/project/add.html">发起项目</a>
                    </li>
                    <li>
                        <a href="/help/about.html">新手帮助</a>
                    </li>
                </ul>
            </div>
            <div class="user col-xs-3">
                <?php if(empty($user["user_name"])): ?><a data-toggle="modal" class="pull-right  " id="reg-btn" onclick="code('.code-reg')" data-target="#reg_dialog">注册</a>
                    <a data-toggle="modal" id="login-btn" onclick="code('.code-login')" class="pull-right mr20" data-target="#login_dialog">登录</a>
                    <?php else: ?>
                    <a href="/user/logout" class="user-name pull-right">退出</a>
                    <a href="/user.html" class="pull-right mr20"><?php echo ($user["user_name"]); ?></a>
                    <!--<div class="user-img visible-lg ">-->
                        <!--<a href="/user.html"><div class="user-img-bg"></div>-->
                            <!--<?php if(empty($user["avatar"])): ?><img src="/images/avatar/noavatar_small.gif" /><?php else: ?><img src="<?php echo ($user["avatar_small"]); ?>" /><?php endif; ?>-->
                    <!--</div>--><?php endif; ?>
            </div>
        </div>
        <!-- <768 nav-->
        <div class="row visible-xs">
            <div class="logo">
                <a href="/">
                    <img src="<?php echo ($config["SITE_LOGO"]); ?>" class="col-xs-4"/>
                </a>
            </div>
            <div class="user col-xs-4 col-xs-offset-4 text-right">
                <?php if(empty($user["user_name"])): ?><a data-toggle="modal" id="reg-btn" onclick="code('.code-reg')" data-target="#reg_dialog">注册</a>
                    <a data-toggle="modal" id="login-btn" onclick="code('.code-login')" class="ml10" data-target="#login_dialog">登录</a>
                    <?php else: ?>
                    <div class="user-img">
                        <a href="/user.html"><div class="user-img-bg"></div>
                            <?php if(empty($user["avatar"])): ?><img src="/images/avatar/noavatar_small.gif" /><?php else: ?><img src="<?php echo ($user["avatar_small"]); ?>" /><?php endif; ?>
                    </div>
                    <a href="/user.html" class="user-name"><?php echo ($user["user_name"]); ?></a><?php endif; ?>
            </div>
        </div>
        <div class="row visible-xs mt5">
            <div class="col-xs-12">
                <ul class="clearfix" id="phone-nav-list">
                    <li class="col-xs-2">
                        <a href="/">首页</a>
                    </li>
                    <li class="dropdown col-xs-3">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目浏览<i class="glyphicon glyphicon-chevron-down"></i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <?php if(is_array($deal_cate_list)): foreach($deal_cate_list as $key=>$vo): ?><li><a href="/list/?id=<?php echo ($vo["id"]); ?>" title="<?php echo ($vo["name"]); ?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                    </li>
                    <li class="col-xs-3">
                        <a href="/user.html" class="dropdown-toggle" data-toggle="dropdown">我的众筹<i class="glyphicon glyphicon-chevron-down"></i> </a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="/user.html">我的众筹</a></li>
                        </ul>
                    </li>
                    <li class="col-xs-2">
                        <a href="/project/add.html">发起项目</a>
                    </li>
                    <li class="col-xs-2">
                        <a href="/help/list.html">新手帮助</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!--header end-->
<script type="text/javascript" src="/javascript/region.js"></script>
<script type='text/javascript'  src='/kindeditor/kindeditor.js'></script>
<div class="main-container">
    <div class="container">
        <div class="row step-item mb15">
            <div class="col-xs-3 step step1 current">1.项目信息<i class="ui-icon ui-icon-total ui-icon-rightarrow"></i> </div>
            <div class="col-xs-3 step step2">2.回报设置<i class="ui-icon ui-icon-total ui-icon-rightarrow"></i> </div>
            <div class="col-xs-3 step step3">3.发起人信息<i class="ui-icon ui-icon-total ui-icon-rightarrow"></i> </div>
            <div class="col-xs-3 step step4">4.完成</div>
        </div>
        <div class="row">
            <div class="col-sm-8">
                <div class="left-main">
                    <h1 class="text-center f18 fb gain-main-title">项目信息</h1>
                    <form class="ui-form" id="create-form" action="/Project/save/" method="post" autocomplete="off">
                        <input type="hidden" name="id" value="<?php echo ($deal_item["id"]); ?>" />
                        <input type="hidden" name="savenext" value="1" />
                        <div class="row">
                            <label class="col-xs-2">项目名称：</label>
                            <div class="col-xs-10">
                                <div class="ipt">
                                    <input name="name" value="<?php echo ($deal_item["name"]); ?>" maxlength="40" type="text" placeholder="名称不超过40个字">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">筹资金额：</label>
                            <div class="col-xs-5">
                                <div class="ipt">
                                    <input type="text" name="limit_price" class="is_money" value="<?php echo ($deal_item["limit_price"]); ?>" placeholder="不少于500元">
                                </div>
                            </div>
                            <div class="col-xs-1 unit">元</div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">筹集天数：</label>
                            <div class="col-xs-5">
                                <div class="ipt">
                                    <input type="text" name="deal_days" maxlength="2" value="<?php echo ($deal_item["deal_days"]); ?>" class="is_num" placeholder="10-90天">
                                </div>
                            </div>
                            <div class="col-xs-1 unit">天</div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">所在地：</label>
                            <div class="col-xs-10">
                                <div class="ipt clearfix">
                                    <div class="col-xs-6">
                                        <div class="ui-dropdown">
                                            <input type="hidden" name="province" value="<?php echo ($deal_item["province"]); ?>" class="select-val">
                                            <a class="dropdown-toggle ui-dropdown-btn int-slt int-slt-two " type="button" id="dropdownMenu2" data-toggle="dropdown">
                                                <span class="dr-text"><?php echo ($deal_item["province"]); ?></span>
                                                <span class="ui-icon icon-downward-blue2 icon-downward-position"></span>
                                            </a>
                                            <ul class="dropdown-menu dropdown-pri-step province-list" role="menu" aria-labelledby="provinceMenu">
                                                <li role="presentation" data-val="安徽" rel="3"><a role="menuitem" tabindex="-1">安徽</a></li>
                                                <li role="presentation" data-val="澳门" rel="396"><a role="menuitem" tabindex="-1">澳门</a></li>
                                                <li role="presentation" data-val="北京" rel="52"><a role="menuitem" tabindex="-1">北京</a></li>
                                                <li role="presentation" data-val="福建" rel="4"><a role="menuitem" tabindex="-1">福建</a></li>
                                                <li role="presentation" data-val="甘肃" rel="5"><a role="menuitem" tabindex="-1">甘肃</a></li>
                                                <li role="presentation" data-val="广东" rel="6"><a role="menuitem" tabindex="-1">广东</a></li>
                                                <li role="presentation" data-val="广西" rel="7"><a role="menuitem" tabindex="-1">广西</a></li>
                                                <li role="presentation" data-val="贵州" rel="8"><a role="menuitem" tabindex="-1">贵州</a></li>
                                                <li role="presentation" data-val="海南" rel="9"><a role="menuitem" tabindex="-1">海南</a></li>
                                                <li role="presentation" data-val="河北" rel="10"><a role="menuitem" tabindex="-1">河北</a></li>
                                                <li role="presentation" data-val="黑龙江" rel="12"><a role="menuitem" tabindex="-1">黑龙江</a></li>
                                                <li role="presentation" data-val="河南" rel="11"><a role="menuitem" tabindex="-1">河南</a></li>
                                                <li role="presentation" data-val="湖北" rel="13"><a role="menuitem" tabindex="-1">湖北</a></li>
                                                <li role="presentation" data-val="湖南" rel="14"><a role="menuitem" tabindex="-1">湖南</a></li>
                                                <li role="presentation" data-val="江苏" rel="16"><a role="menuitem" tabindex="-1">江苏</a></li>
                                                <li role="presentation" data-val="江西" rel="17"><a role="menuitem" tabindex="-1">江西</a></li>
                                                <li role="presentation" data-val="吉林" rel="15"><a role="menuitem" tabindex="-1">吉林</a></li>
                                                <li role="presentation" data-val="辽宁" rel="18"><a role="menuitem" tabindex="-1">辽宁</a></li>
                                                <li role="presentation" data-val="内蒙古" rel="19"><a role="menuitem" tabindex="-1">内蒙古</a></li>
                                                <li role="presentation" data-val="宁夏" rel="20"><a role="menuitem" tabindex="-1">宁夏</a></li>
                                                <li role="presentation" data-val="青海" rel="21"><a role="menuitem" tabindex="-1">青海</a></li>
                                                <li role="presentation" data-val="山东" rel="22"><a role="menuitem" tabindex="-1">山东</a></li>
                                                <li role="presentation" data-val="上海" rel="321"><a role="menuitem" tabindex="-1">上海</a></li>
                                                <li role="presentation" data-val="山西" rel="23"><a role="menuitem" tabindex="-1">山西</a></li>
                                                <li role="presentation" data-val="陕西" rel="24"><a role="menuitem" tabindex="-1">陕西</a></li>
                                                <li role="presentation" data-val="四川" rel="26"><a role="menuitem" tabindex="-1">四川</a></li>
                                                <li role="presentation" data-val="台湾" rel="397"><a role="menuitem" tabindex="-1">台湾</a></li>
                                                <li role="presentation" data-val="天津" rel="343"><a role="menuitem" tabindex="-1">天津</a></li>
                                                <li role="presentation" data-val="香港" rel="395"><a role="menuitem" tabindex="-1">香港</a></li>
                                                <li role="presentation" data-val="西藏" rel="28"><a role="menuitem" tabindex="-1">西藏</a></li>
                                                <li role="presentation" data-val="新疆" rel="29"><a role="menuitem" tabindex="-1">新疆</a></li>
                                                <li role="presentation" data-val="云南" rel="30"><a role="menuitem" tabindex="-1">云南</a></li>
                                                <li role="presentation" data-val="浙江" rel="31"><a role="menuitem" tabindex="-1">浙江</a></li>
                                                <li role="presentation" data-val="重庆" rel="394"><a role="menuitem" tabindex="-1">重庆</a></li>
                                            </ul>

                                        </div>
                                    </div>
                                    <div class="col-xs-6">
                                        <div class="ui-dropdown ml5">
                                            <input type="hidden" name="city" value="<?php echo ($deal_item["city"]); ?>" class="select-val">
                                            <a class="dropdown-toggle ui-dropdown-btn" type="button" id="cityMenu" data-toggle="dropdown">
                                                <span class="dr-text"><?php echo ($deal_item["city"]); ?></span>
                                                <span class="ui-icon icon-downward-blue2 icon-downward-position"></span>
                                            </a>
                                            <ul class="dropdown-menu dropdown-pri-step city-list" role="menu" aria-labelledby="cityMenu">
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row type-list">
                            <label class="col-xs-2 type-lable">类别：</label>
                            <div class="col-xs-10 wrap-btn-type">
                                <?php if(is_array($cate_list)): $i = 0; $__LIST__ = $cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="btn-type <?php if(($vo['id'] == $deal_item['cate_id'])): ?>current<?php endif; ?>">
                                        <input type="radio" name="cate_id" value="<?php echo ($vo["id"]); ?>" <?php if(($vo['id'] == $deal_item['cate_id'])): ?>checked<?php endif; ?>>
                                        <?php echo ($vo["name"]); ?>
                                    </div><?php endforeach; endif; else: echo "" ;endif; ?>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">项目封面：</label>
                            <div class="col-xs-5 ipt">
                                <input type="hidden" name="image" value="<?php echo ($deal_item["image"]); ?>">
                                <div id="fileList" class="uploader-list"></div>
                                <a class="ui-btn ui-btn-blue btn-up" id="filePicker">上传封面</a>
                                <img id="upload_image" style="width:200px;height:200px;<?php if(empty($deal_item['image'])): ?>display: none;<?php endif; ?>margin-top: 20px;" src="<?php echo ($deal_item["image"]); ?>">
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">视频：</label>
                            <div class="col-xs-10">
                                <div class="ipt">
                                    <input type="text" name="video" value="<?php echo ($deal_item["video"]); ?>" placeholder="请输入优酷视频的播放地址">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">项目简介：</label>
                            <div class="col-xs-10">
                                <div class="wrap-textarea textarea-f ipt">
                                    <textarea id="setp-textarea1" name="brief" maxlength="75" placeholder="不超过75个字"><?php echo ($deal_item["brief"]); ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">项目描述：</label>
                            <div class="col-xs-10">
                                <div class="wrap-textarea textarea-f ipt">
                                    <script type='text/javascript'> var VAR_MODULE = "m";var VAR_ACTION = "a";var ROOT = '/index.php';var ROOT_PATH = '/';var eid = 'setp-textarea2';KE.show({id : eid,skinType: 'tinymce',allowFileManager : true,resizeMode : 0,items : [
                                        'source','fullscreen', 'undo', 'redo', 'print', 'cut', 'copy', 'paste',
                                        'plainpaste', 'wordpaste', 'justifyleft', 'justifycenter', 'justifyright',
                                        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                                        'superscript', 'selectall', '-',
                                        'title', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold',
                                        'italic', 'underline', 'strikethrough', 'removeformat', 'image',
                                        'flash', 'media', 'table', 'hr', 'emoticons', 'link', 'unlink'
                                    ]	});</script>
                                    <textarea id="setp-textarea2" name="description" style='width:100%; min-height:350px;'><?php echo ($deal_item["description"]); ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2">标签：</label>
                            <div class="col-xs-10">
                                <div class="ipt">
                                    <input name="tags" type="text" value="<?php echo ($deal_item["tags"]); ?>" placeholder="请使用空格或逗号分隔不同标签">
                                </div>
                            </div>
                        </div>


                        <div class="row text-center mt30">
                            <a class="ui-btn ui-btn-blue btn-create-red-next" id="btn_create_project"><span class="text">下一步</span><span class="sign-btn">&gt</span></a>
                            <p class="tips mt10 f14 fc-red"></p>
                        </div>
                    </form>
                </div>



            </div>
            <div class="col-xs-4 hidden-xs">
                <div class="right-sidebar">
                    <img src="/images/home/upload/ex03.png" />
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {
        var uploader = WebUploader.create({
            auto: true,
            chunked: false,
            method: 'POST',
            disableGlobalDnd: true,
            fileNumLimit: 1,
            //fileSizeLimit: 1024000,
            swf: '/javascript/home/webuploader/Uploader.swf',
            server: '/Project/upload_image',
            pick: '#filePicker',
            accept: {
                title: '选择封面图片',
                extensions: 'gif,jpg,jpeg,png',
                mimeTypes: 'image/*'
            }
        });
        uploader.on('uploadSuccess', function (file,response) {
            var data = JSON.parse(response._raw);
            $('#upload_image').show().attr('src',data.result + '?rand='+Math.random());
            $('input[name=image]').val(data.result);
            uploader.reset();
        });
    });
</script>
<div class="wrap-footer">
    <div class="container footer">
        <div class="menu-nav text-center">
            <?php if(is_array($help_list)): $k = 0; $__LIST__ = $help_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k; if(( $k != 1)): ?><span class="menu-nav-split"></span><?php endif; ?>
            <a href="<?php echo ($vo["url"]); ?>"><?php echo ($vo["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <div class="back-top">
            <img src="/images/home/back_top.png"/>
        </div>
        <div class="info mb15 text-center">
            <span>网络文化经营许可证：文网文[2010]040号</span>
            <span>值电信业务经营许可证：浙B2-20080224-1</span>
            <span>信息网络传播视听节目许可证：1109364号</span>
            <span>互联网违法和不良信息举报电话：0571-81683755</span>
        </div>
        <div class="copy mb15 text-center">
            &copy;&nbsp;&nbsp;2014 RichZoo. All rights reserved. 沪ICP备14018325号 Copyright 2014 锐祁机构
        </div>
    </div>
</div>
<?php if(empty($user_info['user_name'])): ?><!--注册-->
<div class="modal fade" id="reg_dialog" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_reg_dialog">
        <div class="modal-content">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal"onclick="window.location.reload()">x</button>
            <h1 class="add-header">新用户注册</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="reg-form" autocomplete="off">

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="填写电子邮箱">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机号：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="mobile" placeholder="填写手机号">
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" placeholder="设置密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">确认密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="re_password" maxlength="16" placeholder="输入同一密码">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="pull-left">
                                <div class="wrap-code">
                                    <div class="text-center pt5 ml5">
                                        <img class="code-img code-reg" src="/index/verify_code"  alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">短信验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="auth_code" placeholder="输入收到的验证码">
                                </div>
                            </div>
                            <a class="ui-btn ui-btn-blue btn-get-code get-code-reg">获取验证码</a>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2"></label>
                            <div class="form-radio col-xs-4">
                                <div class="ipt">
                                    <div class="col-xs-12">
                                        <span class="ui-radio check-agree"></span>
                                        阅读并同意RichZoo众筹<a href="#" class="fc-blue">《服务协议》</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="register">注册</button>
                    <p class="tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div>
<!--注册end-->
<!--login s-->
<div class="modal fade" id="login_dialog" tabindex="-1" role="dialog"  data-keyboard="false" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog" id="wrap_login_dialog">
        <div class="modal-content" id="login-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" id="login-close">x</button>
            <h1 class="add-header">用户登录</h1>
            <div class="add-content">
                <div class="add-content-form">
                    <form class="ui-form" id="login-form" autocomplete="off">
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="username" id="username" placeholder="邮箱">
                                </div>
                                <div class="pl5 mt5" id="goto-reg">没有帐号？去注册</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">登录密码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="password" name="password" maxlength="16" id="pass" placeholder="输入登录密码">
                                </div>
                                <div class="pl5 mt5" id="link-forget">忘记密码？</div>
                            </div>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">验证码：</label>
                            <div class="col-xs-3">
                                <div class="ipt lg-code">
                                    <input type="text" name="code" maxlength="4" placeholder="请输入图片中的数字">
                                </div>
                            </div>
                            <div class="pull-left">
                                <div class="wrap-code">
                                    <div class="text-center pt5 ml5">
                                        <img class="code-img code-login" src="/index/verify_code" alt="验证码">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <form class="ui-form" id="login-bind-form" autocomplete="off" style="display: none">
                                    <input type="hidden" name="username" id="h-user">
                                    <input type="password" style="display: none" id="h-pass" name="password" maxlength="16" >
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">手机号码：</label>
                            <div class="col-xs-4">
                                <div class="ipt lg-code">
                                    <input type="text" name="mobile" id="phone"  placeholder="输入手机号码">
                                </div>
                            </div>
                            <a class="ui-btn ui-btn-blue btn-get-code get-bind-code">获取验证码</a>
                        </div>
                        <div class="row">
                            <label class="col-xs-2 col-xs-offset-2">短信验证码：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="code" placeholder="请填写收到验证码">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax">登录</button>
                    <p class="login-tips mt10 fc-red f14"></p>
                </div>
                <div class="add-link text-center mt30 mb30" id="wrap-login-bind" style="display: none">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="login-ajax-bind">绑定并登录</button>
                    <p class="login-bind-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
        <div class="modal-content" id="forget-wrap">
            <button class="ui-btn ui-btn-blue btn-add-close" data-dismiss="modal" onclick="window.location.reload()">x</button>
            <h1 class="add-header">找回密码</h1>
            <div class="add-content">
                <div class="add-content-form" style="padding: 40px 0 20px 0">
                    <form class="ui-form" id="forget-form" autocomplete="off">
                        <div class="row">
                            <label class="col-xs-3 col-xs-offset-2">注册邮箱：</label>
                            <div class="col-xs-4">
                                <div class="ipt">
                                    <input type="text" name="email" placeholder="注册邮箱">
                                </div>
                            </div>
                        </div>
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">短信验证码：</label>-->
                            <!--<div class="col-xs-3">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="text" name="auth_code" placeholder="输入收到的验证码">-->
                                <!--</div>-->
                            <!--</div>-->
                            <!--<a class="ui-btn ui-btn-blue btn-get-code get-code-lost">获取验证码</a>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">新的登录密码：</label>-->
                            <!--<div class="col-xs-4">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="password" name="password" placeholder="设置密码">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="row">-->
                            <!--<label class="col-xs-3 col-xs-offset-2">再输入一次密码：</label>-->
                            <!--<div class="col-xs-4">-->
                                <!--<div class="ipt">-->
                                    <!--<input type="password" name="re_password" placeholder="输入同一密码">-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</div>-->
                    </form>
                </div>
                <div class="add-link text-center mt30 mb30">
                    <button class="ui-btn ui-btn-blue ui-btn-default" id="lost-ajax">提交</button>
                    <p class="lost-tips mt10 fc-red f14"></p>
                </div>
            </div>
        </div>
    </div>
</div><?php endif; ?>
<!--login e-->
<script type="text/javascript" src="/javascript/home/main.js"></script>
<?php if(($request_login == 1)): ?><script type="text/javascript">
    $('#login_dialog').modal('show');
</script><?php endif; ?>
        <script>
            $(function(){
                $("#login-close").on('click',function(){
                    var _url = window.location.href;
                    var _status=_url.indexOf('request_login');
                    if(_status == -1){
                        window.location.reload();
                    }
                })
            })
        </script>
</body>
</html>